package nojava;

public class RunnableB implements Runnable{
    private Dog dog;

    public RunnableB(Dog dog) {
        this.dog = dog;
    }

    @Override
    public void run() {
        dog.fn2();
    }
}
